# frv testcase for mwtacc $FRinti,$ACC40k
# mach: all

	.include "testutils.inc"

	start

	.global mwtacc
mwtacc:
	test_accg_immed	0x00,accg0
	test_acc_immed	0x00000000,acc0

	set_fr_iimmed	0xdead,0xbeef,fr10
	mwtacc		fr10,acc0
	test_accg_immed	0x00,accg0
	test_acc_immed	0xdeadbeef,acc0

	set_fr_iimmed	0x1234,0x5678,fr10
	mwtacc		fr10,acc0
	test_accg_immed	0x00,accg0
	test_acc_immed	0x12345678,acc0

	pass
